﻿<?xml version="1.0" encoding="utf-8" ?>

<Content type="xform" name="WebSettings">
   <model>
     <instance>
       <scheduler>
         <add key="AvailableActions" value="LuceneIndex"/>
         <add key="MinimumInterval" value="30"/>
         <add key="SiteURL" value="http://www.mysite.co.uk/"/>
       </scheduler>
    </instance>
    <submission id="WebSettings" action="" method="post" event="form_check(this)" />
     <bind nodeset="scheduler">
       <bind id="AvailableActions" nodeset="add[@key='AvailableActions']/@value" required="true()" type="string" />
       <bind id="MinimumInterval" nodeset="add[@key='MinimumInterval']/@value" required="true()" type="string" />
       <bind id="SiteURL" nodeset="add[@key='SiteURL']/@value" required="true()" type="string" />
     </bind>      
   </model>
   <group ref="WebSettings">
    <label>Scheduler Settings</label>
     <group>
       
     <input bind="SiteURL">
       <label>Site URL</label>
     </input>
     <range bind="MinimumInterval" start="10" end="1440" step="10">
       <label>MinimumInterval</label>
     </range>
    <select bind="AvailableActions" appearance="full">
       <label>Available Actions</label>
       <item>
         <label>Indexer</label>
         <value>LuceneIndex</value>
       </item>
        <item>
          <label>Feed</label>
          <value>Feed</value>
        </item>
        <item>
          <label>User Alerts</label>
          <value>UserAlerts</value>
        </item>
        <item>
          <label>Subscription Process</label>
          <value>SubscriptionProcess</value>
        </item>
     </select>
     </group>
     <group>
       <submit submission="" ref="submit" class="principle">
      <label>Save Scheduler Settings</label>
    </submit>
     </group>
  </group>
</Content>
